import  Mock from 'mockjs'

let list = Mock.mock({
  'list|10':[ //产生10条数据
    {
      'username':'@first',
      'nickname':'@cname',
      'password':'@word',
      'adminType|1':[
        {
        id:1,
        type:'normal'
      },{
        id:2,
        type:'admin'
      },{
        id:3,
        type:'guest'
      }
      ],
      'usable|1':'@boolean'
    }
  ]
})

let adminTypes=Mock.mock([
  {
    id:1,
    type:'normal'
  },{
    id:2,
    type:'admin'
  },{
    id:3,
    type:'guest'
  }


])

export default {
  list:list,
  adminTypes:adminTypes
}
